/*
 * @Description: 
 * @Author: Leequik
 * @Date: 2025-06-15 13:58:01
 * @LastEditTime: 2025-06-15 14:10:20
 * @LastEditors: Leequik
 */
//默认路由加载文件

import { createRouter, createWebHistory } from 'vue-router';


//加载当前目录下其他路由文件
import homeRoutes from './home.ts';
import demoRoutes from './demo.ts';
import pageRoutes from './page.ts';

const routes = [...homeRoutes, ...demoRoutes, ...pageRoutes];

const router = createRouter({
    //路由的history模式,hash模式为：createWebHashHistory()
    history: createWebHistory(), 
    routes:routes
})

export default router